#ifndef MY_COMBO_H
#define MY_COMBO_H

#include <QWidget>
#include <QLabel>
#include <QComboBox>
#include <QHBoxLayout>
#include "common.h"


class My_Combo : public QWidget
{
    Q_OBJECT
public:
    My_Combo(const QString &title, QWidget *parent = nullptr);
    void addItems(const QStringList &texts);
    void setCurrentIndex(int index);
    QString currentText(void);

private:
    QLabel* name;
    QComboBox* combo;
    QHBoxLayout* box;
};

#endif // MY_COMBO_H
